package homework_04;

import java.util.Arrays;

public class home_08 {
    public static void main(String[] args) {
        int[] a={1,2,3,4,1,2};
        for (int i=0;i<a.length-1;i++) {
            for (int j = i + 1; j < a.length; j++) {
                if (a[i] == a[j]) {
                    a[j] = '0';
                }
            }
        }
        System.out.println(Arrays.toString(a));
    }
}
